-- GENERATED SPELL FOR [Felguard Annihilator] --


function spell0_17400(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(15615,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17400', 5343, 1)
end

function spell1_17400(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(18072,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17400', 536, 1)
end

function Sorts_17400(pUnit, Event)
local choix_sorts_17400 = math.random(0, 1)
if choix_sorts_17400 == 0 then
pUnit:RegisterEvent('spell0_17400', 1, 1)
end
if choix_sorts_17400 == 1 then
pUnit:RegisterEvent('spell1_17400', 1, 1)
end
end

function mob17400_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17400', math.random(1500, 3000), 1)
end

function mob17400_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17400_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17400_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17400, 1, 'mob17400_Action')
RegisterUnitEvent(17400, 2, 'mob17400_Leave')
RegisterUnitEvent(17400, 3, 'mob17400_Kill')
RegisterUnitEvent(17400, 4, 'mob17400_Die')
